package v1

type RegisterRequest struct {
	Account  string `json:"account" binding:"required"`
	Password string `json:"password" binding:"required" `
}
type LoginRequest struct {
	Account  string `json:"account" binding:"required"`
	Password string `json:"password" binding:"required" `
}
type LoginResponse struct {
	Token string `json:"token"`
	Name  string `json:"name"`
	Id    uint   `json:"id"`
}
type UsersLoginRequest struct {
	Account  string `json:"account" binding:"required"`
	Password string `json:"password" binding:"required" `
}
type UsersLoginResponse struct {
	Token string `json:"token"`
	Name  string `json:"name"`
	Id    uint   `json:"id"`
}
type UsersRegisterRequest struct {
	Account  string `json:"account" binding:"required"`
	Password string `json:"password" binding:"required" `
	Name     string `json:"name" binding:"required"`
}
type UsersChangePasswordRequest struct {
	UserID      uint   `json:"user_id" binding:"required"`
	OldPassword string `json:"old_password" binding:"required"`
	NewPassword string `json:"new_password" binding:"required"`
}
type GetUsersResponse struct {
	ID      uint   `json:"id"`
	Name    string `json:"name"`
	Account string `json:"account"`
}
